/* 图形测试结果页面样式 - 参照设计图 */
.graphics-test-result-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 背景网格效果 */
.graphics-test-result-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* 背景装饰曲线 */
.graphics-test-result-page::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* 顶部导航 */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.result-header .return-button {
  width: 160px;
  height: 40px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
  background-color: transparent;
  flex-shrink: 0;
}

.result-header .return-button:hover {
  opacity: 1;
  transform: scale(1.05);
}

.result-header .return-button:active {
  transform: scale(0.95);
}

.result-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-spacer {
  width: 160px;
  flex-shrink: 0;
}

/* 结果容器 */
.result-container {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 结果卡片 */
.result-card {
  background: white;
  border-radius: 24px;
  padding: 0;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideInScale 0.6s ease-out;
  overflow: hidden;
}

@keyframes slideInScale {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 观察力水平标题 */
.observation-level-header {
  background: #FFD700;
  color: #333;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* 主要内容区域 */
.main-result-content {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  gap: 30px;
  background-color: #dbedf8;
}

/* 左侧评分区域 */
.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* 六边形评分 */
.score-hexagon {
  width: 120px;
  height: 120px;
  background: #FFD700;
  border: 4px solid white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(45deg);
  margin-bottom: 15px;
}

.score-number {
  color: white;
  font-size: 36px;
  font-weight: bold;
  transform: rotate(-45deg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 等级徽章 */
.score-level-badge {
  background: #FFD700;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 右侧统计图表区域 */
.stats-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-left: 1px solid #0000001f;
}

/* 统计条项目 */
.stat-bar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* 统计条 */
.stat-bar {
  height: 30px;
  /* border-radius: 0 15px 15px 0; */
  display: flex;
  align-items: center;
  padding-left: 15px;
  position: relative;
  min-width: 80px;
  transition: all 0.3s ease;
}

.stat-bar:hover {
  transform: scale(1.02);
}

.correct-bar {
  background: linear-gradient(90deg, #4A90E2, #357ABD);
}

.wrong-bar {
  background: linear-gradient(90deg, #DC3545, #C82333);
}

.missed-bar {
  background: linear-gradient(90deg, #FF9800, #F57C00);
}

.stat-label {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-value {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  min-width: 30px;
  text-align: right;
}

/* 详细统计 */
.detailed-stats {
  background: #F8F9FA;
  padding: 20px;
  border-top: 1px solid #E9ECEF;
}

.detailed-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detailed-stat-item:last-child {
  margin-bottom: 0;
}

.detailed-label {
  color: #666;
  font-size: 14px;
}

.detailed-value {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

/* 确认按钮 */
.confirm-button {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  border: none;
  padding: 18px 120px;
  border-radius: 25px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
}

.confirm-button:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .result-header {
    padding: 15px;
  }

  .result-header .return-button {
    width: 140px;
    height: 32px;
  }

  .result-title {
    font-size: 20px;
  }

  .header-spacer {
    width: 140px;
  }

  .result-container {
    padding: 15px;
  }

  .result-card {
    max-width: 100%;
  }

  .main-result-content {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .score-hexagon {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 28px;
  }

  .score-level-badge {
    font-size: 14px;
    padding: 6px 12px;
  }

  .stats-section {
    width: 100%;
  }

  .stat-bar {
    height: 25px;
    min-width: 60px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 16px;
  }

  .detailed-stats {
    padding: 15px;
  }

  .confirm-button {
    padding: 15px 80px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .result-header .return-button {
    width: 120px;
    height: 28px;
  }

  .result-title {
    font-size: 18px;
  }

  .header-spacer {
    width: 120px;
  }

  .observation-level-header {
    font-size: 14px;
    padding: 12px 15px;
  }

  .main-result-content {
    padding: 15px;
  }

  .score-hexagon {
    width: 80px;
    height: 80px;
  }

  .score-number {
    font-size: 24px;
  }

  .score-level-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .stat-bar {
    height: 22px;
    min-width: 50px;
    padding-left: 10px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 14px;
  }

  .detailed-stats {
    padding: 12px 24px;
  }

  .detailed-label {
    font-size: 12px;
  }

  .detailed-value {
    font-size: 14px;
  }

  .confirm-button {
    padding: 12px 60px;
    font-size: 16px;
  }
}